<div class="container">
    <div class="row">
        <table class="table table-striped" border="1">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Kelas</th>
                    <th>Materi</th>
                    <th>Nama Pengajar</th>
                    <th>Type Soal</th>
                    <th>Jumlah Soal</th>
                    <th>Waktu</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php $i=0;foreach($rows as $row){$i++;?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $row->kelas; ?></td>
                    <td><?php echo $row->materi; ?></td>
                    <td><?php echo $row->nama; ?></td>
                    <td><?php echo $row->type_soal; ?></td>
                    <td><?php echo $row->jumlah_soal; ?></td>
                    <td><?php echo $row->waktu; ?></td>
                    <td style="text-align: center;"><a href="<?php echo site_url(); ?>siswa/kerjakan/<?php echo $row->id; ?>/0" class="btn btn-primary">Kerjakan</a></td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>